package zuoye3;

import java.util.ArrayList;
import java.util.List;

public class Test {

	public static void main(String[] args) {
		List<Employee> stsffList = new ArrayList<Employee>();
		Employee zhangSan = new Employee(1,"zhangsan",18,3000);
		Employee liSi = new Employee(2, "lisi",25, 3500);
		Employee wangWu = new Employee(3, "wangwu", 17, 3200);
		stsffList.add(zhangSan);
		stsffList.add(liSi);
		stsffList.add(wangWu);
		Employee zhaoliu=new Employee(2,"zhaoliu",23,3400);
		stsffList.add(zhaoliu);
		stsffList.remove(wangWu);
		Work worker = new Work();
		for (Employee employee : stsffList) {
			System.out.println(employee.getId() + "\t" + employee.getName() + "\t" + employee.getAge() + "\t"
					+ employee.getSalary());
			worker.work(employee.getName());
		}
		System.out.println(zhangSan.equals(liSi));
		System.out.println(zhangSan.equals(zhangSan));

	}
}
